//
//  ZYBaseController.h
//  Beautiful
//
//  Created by admin on 2017/5/2.
//  Copyright © 2017年 admin. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface ZYBaseController : UIViewController<UITextFieldDelegate,MBProgressHUDDelegate>
@property (nonatomic,strong) MBProgressHUD *mbp;
@property (nonatomic,strong) UIView *topBar;
@property (nonatomic,strong) UIScrollView *contentView;
@property float contentWidth,contentHeight;
@property (nonatomic,strong) UIButton *leftButton,*rightButton;
@property (nonatomic,strong) UIToolbar *toolbar;
@property (nonatomic,strong) UILabel *titleLabel;

@property (nonatomic,strong) UIView  *headView;



- (void)initTopBarWithTitle:(NSString *)title;
- (void)initTopBarWithImage:(UIImage *)image width:(float)imageWidth height:(float)imageHeight;
- (void)addLeftButton:(UIImage *)leftButtonImage width:(float)imageWidth height:(float)imageHeight;
- (void)addRightButton:(UIImage *)rightButtonImage width:(float)imageWidth height:(float)imageHeight;
- (void)addRightButtonText:(NSString *)rightButtonText width:(float)imageWidth height:(float)imageHeight;
- (void)addLeftButtonText:(NSString *)rightButtonText width:(float)imageWidth height:(float)imageHeight;
-(void)initTopBarWithView:(UIView *)view;
- (void)setupUI;
- (void)leftButtonPress;
- (void)rightButtonPress;
- (void)showPopViewWithTitle:(NSString *)title;
- (void)hiddenPopView;
//- (void)loadPhoto;
- (void)toast:(NSString *)text;
- (void)showLoading:(NSString *)text;
- (void)hideLoading;
- (NSString *)controllerTitle;
@end
